package com.case1.tlias.controller;

import com.case1.tlias.Pojo.Dept;
import com.case1.tlias.Pojo.Face;
import com.case1.tlias.Pojo.Result;
import com.case1.tlias.service.EmpService;
import com.case1.tlias.service.FaceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RestController
@RequestMapping("api/face")
public class FaceController {
    @Autowired
    private FaceService faceService;
    @PostMapping
    public Result add(){
        log.info("新录入");
        faceService.add(new Face());
        return Result.success();
    }
    @GetMapping
    public Result selectByFace(@RequestBody Face face){
        log.info("人脸识别登陆");
        String result = faceService.seFace(face);
        return Result.success(result);
    }

}
